<template>
  <div class="top">
    <!-- 左侧小图标 -->
    <a href="" class="icon-left">
      <i class="iconfont icon-shouye"></i>
    </a>
    <a href="">
      <i class="title">网易严选</i>
    </a>
    <!-- 右侧 -->
    <div class="right">
      <!-- 搜索 -->
      <a href="" class="search">
        <i class="iconfont icon-Magnifier"></i>
      </a>
      <!-- 购物车 -->
      <a href="" class="cart">
        <i class="iconfont icon-gouwuche"></i>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: "top",
};
</script>

<style lang="less" scoped>
.top {
  display: flex;
  width: 100%;
  height: 44px;
  background-color: #f7f8f8;
  padding: 0 8px 0 12px;
  align-items: center;
  justify-content: space-around;
  box-sizing: border-box;
  position: relative;
  border-bottom: 1px solid #000;
  .icon-left {
    position: absolute;
    left: 12px;
    top: 8px;
    .iconfont {
      font-size: 24px;
    }
  }
  .title {
    position: absolute;
    left: 147px;
    top: 10px;
    font-size: 20px;
    font-weight: 700;
  }
  .right {
    position: absolute;
    right: 10px;
    width: 74px;
    height: 32px;
    line-height: 32px;
    .search {
      .iconfont {
        font-size: 28px;
      }
    }
    .cart {
      margin-left: 10px;
      .iconfont {
        font-size: 28px;
      }
    }
  }
}
</style>
